<% @activities.each do |activity| %>
  <div class="entry">
    <h1><%= link_to activity.title, activity %></h1>

    <ul>
      <li>Host by: <%= activity.id%></li>
      <li>When: <%= activity.host_on %></li>
      <li>Where: <%= activity.host_at %></li>
    </ul>
    
    <td><%= activity.img_url %></td>

  </div>
    <%= button_to 'Edit', edit_activity_path(activity), method: :get %></td>
    <%= button_to 'Destroy', activity, method: :delete, data: { confirm: 'Are you sure?' } %>

<% end %>

<br />

<%= link_to 'New Activity', new_activity_path %>
